﻿using MediatR;
using System.ComponentModel.DataAnnotations;

namespace Swork03_28.Api.Application.Commands.FarmedCommand
{
    public class HealthCreateCommand : IRequest<int>
    {
        public int Id { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        [StringLength(50)]
        public string? BatchId { get; set; }

        /// <summary>
        /// 饲养天数
        /// </summary>
        public int FeedingDays { get; set; }

        /// <summary>
        /// 保健方式
        /// </summary>
        public string? HealthCareMode { get; set; }

        /// <summary>
        /// 保健方法
        /// </summary>
        public string? HealthCareMethod { get; set; }
    }


    /// <summary>
    /// 修改保健信息
    /// </summary>
    public class HealthUpdateCommand : IRequest<int>
    {
        public int Id { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        [StringLength(50)]
        public string? BatchId { get; set; }

        /// <summary>
        /// 饲养天数
        /// </summary>
        public int FeedingDays { get; set; }

        /// <summary>
        /// 保健方式
        /// </summary>
        public string? HealthCareMode { get; set; }

        /// <summary>
        /// 保健方法
        /// </summary>
        public string? HealthCareMethod { get; set; }
    }

    /// <summary>
    /// 删除保健信息
    /// </summary>
    public class HealthDeleteCommand:IRequest<int>
    {
        public int Id { get; set; }
    }
}
